Using state transitions

Set state transitions to define how the state manager reacts when the application state changes, such as when the user clicks a button. For example, you can:

Setting transitions between any to any state

When you create states the state manager uses the default transition to transition between states.

To set the transitions between states:

  1. Create a toggle button and a state manager that has one state group with two states (for example, On and Off). See Create a toggle button.
  2. In the State Tools click Transition Editor to open the State Transition Editor.
    To create a new transition, click + Create Transition under the existing transitions.
  3. When you first open the State Transition Editor it shows the transition that is used between all states in that state group. Move your mouse pointer over to see the details of the transition.
  4. In the window that pops up set:

Setting transitions between specific states

You can set custom transitions between specific states. You can add states to the State Transition Editor canvas and configure transition settings between them.

To set transitions between specific states:

  1. Right-click in the State Transition Editor and in the Add State To Canvas select the state for which you want to set the transitions.
    To show all states, click Add All States To Canvas.
  2. Click the state to select it and click the Default transitions to set a Custom transition.
  3. Move your mouse pointer over the transitions to see the details of the transitions.
    The State Tools shows you the transitions you define in the State Transition Editor. Click a transition to open the custom settings for that transition in the State Transition Editor.

Configuring easing functions

You can configure some of the easing functions in the State Transition Editor to define the values in the function that sets the transition curve.

The easing functions you can configure in the State Transition Editor are:

See also

State manager

Creating state managers

Using the Button nodes